from django.urls import path, include
from django.views.generic import RedirectView
from .error_views import custom_403_view, custom_404_view, custom_500_view

urlpatterns = [
    # 首页模块路由
    path('', include('home.urls')),
    path('favicon.ico', RedirectView.as_view(url='static/admin/images/adminlogo.jpg')),

    # 系统模块路由
    path('system/', include('system.urls')),
    # git 模块路由
    path('git/', include('git.urls')),
    # docker模块路由
    path('docker/', include('docker.urls')),
    # k8s模块路由
    path('k8s/', include('k8s.urls')),
]

# 自定义异常页面处理
handler404 = custom_404_view
handler403 = custom_403_view
handler500 = custom_500_view

